MovieImportSetSampleDuration
TheMovieImportSetSampleDuration
function allows an application to set the sample duration for new samples to be created with your component.
pascal ComponentResult MovieImportSetSampleDuration (ComponentInstance ci, TimeValue duration, TimeScale scale);
ci
- Identifies the application's connection to your movie data import component.
duration
- Specifies the sample duration in units specified by the
scale
parameter.scale
- Specifies the time scale for the duration value. This may be any arbitrary time scale; that is, it may not correspond to the movie's time scale. You should convert this time scale to the movie's time scale before using the
duration
value, using the Movie Toolbox'sConvertTimeScale
function.DESCRIPTION
Applications may use theMovieImportSetSampleDuration
function to set the duration of samples to be added by your movie data import component. This duration is expressed in an arbitrary time scale.RESULT CODE
badComponentSelector 0x80008002 Function not supported
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help